package com.bz.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bz.model.UserRoleDto;

import lombok.Data;

@Data
public class BaseDto implements Serializable {
    /**
     * 
     */
    private static final long        serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long                     id;

    /**
     * key：roleCOde,value:UserRoleDto
     */
    @TableField(exist = false)
    private Map<String, UserRoleDto> _roleMap;

    /**
     * 用户ID
     */
    @TableField(exist = false)
    private Long                     _userId;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String                   createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date                     createDate       = new Date();

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    private String                   updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_date")
    private Date                     updateDate;
}
